package com.ss.android.article.common.e;

import android.text.TextUtils;

import com.bytedance.common.utility.Logger;
import com.ss.android.common.util.Singleton;

public class f implements d {
    private static final String a = f.class.getSimpleName();
    private static Singleton<f> b = new Singleton<f>() {
        public final f create() {
            return new f();
        }
    };
    private d c;

    public f() {

    }

    public final void a(boolean arg5) {
        if (this.c == null && !TextUtils.isEmpty("com.ss.android.mine.ad")) {
            try {
                Object v0_1 = Class.forName("com.ss.android.mine.ad").newInstance();
                if (!(v0_1 instanceof d)) {
                } else {
                    this.c = ((d) v0_1);
                }
            } catch (Throwable v0) {
                Logger.d("module", "load " + f.a + " exception: " + v0);
            }
        }

        if (this.c != null) {
            this.c.a(arg5);
        }
    }

    public static f a() {
        return (f) b.get();
    }
}

